package com.aorise.mapper.halt;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
* @Author:cat
* @Description 停机记录通知mybatis接口类
* @Date:Created in 2019-06-11
* @Modified By:
*/
@Mapper
@Component(value = "haltInformMapper")
public interface HaltInformMapper {

    /**
     * @Author:cat
     * @Description 查询停机记录未读消息总数
     * @params: map 查询条件Map
     * @Date:2019-06-11
     * @Return: Long 数据总条数
     * @Modified By:
     */
    Long getHaltInformByUserId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 删除停机记录通知信息
     * @params: map 查询条件Map
     * @Date:2019-06-11
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer deleteHaltInform(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增停机记录通知信息
     * @params: map 查询条件Map
     * @Date:2019-06-18
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addHaltInform(Map<String, Object> map) throws DataAccessException;

}